package one.stand.mapper;

import one.stand.model.Goods;
import one.stand.model.GoodsType;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsApiCrmMapper {
    /**
     * @param goodsTypeId 产品分类
     * @param companyId   企业id
     * @param isSelect    是否优选产品
     * @param tabType     是否定价
     * @return
     */
    List<Goods> selectGoodsInfo(@Param("goodsTypeId") Integer goodsTypeId
            , @Param("companyId") Integer companyId
            , @Param("isSelect") Boolean isSelect
            , @Param("tabType") Integer tabType
            , @Param("keyword") String keyword
    );

    List<GoodsType> selectTypesChild(@Param("parentId") Integer parentId
            , @Param("companyId") Integer companyId
            , @Param("isSelect") Boolean isSelect
            , @Param("isShow") boolean isShow);

    Integer selectGoodsViewCount(@Param("companyId") Integer companyId, @Param("cardId") Integer cardId, @Param("stime") String stime, @Param("etime") String etime);

    Integer selectCardNum(@Param("companyId") Integer companyId);

    List<Integer> selectLive(@Param("companyId") Integer companyId);
}
